﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

public partial class ascx_insert : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        ctpDataContext db = new ctpDataContext();

        language l;


        l = new language();

        l.no = 0;
        l.language_no = 15;
        l.code = "en";
        l.title = "英语";

        db.languages.InsertOnSubmit(l);
        db.SubmitChanges();


        l = new language();


        l.no = 16;
        l.language_no = 15;
        l.code = "zh-tw";
        l.title = "繁体中文";

        db.languages.InsertOnSubmit(l);
        db.SubmitChanges();


        l = new language();


        l.no = 15;
        l.language_no = 15;
        l.code = "zh";
        l.title = "简体中文";

        db.languages.InsertOnSubmit(l);
        db.SubmitChanges();
    }
}
